package thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class demo23 {
    public static void main(String[] args) {
        ExecutorService executorService = Executors.newCachedThreadPool();
        Executors.newFixedThreadPool(5);
        Executors.newScheduledThreadPool(5);
        Executors.newSingleThreadExecutor();
        Executors.newSingleThreadScheduledExecutor();
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor( 5, 10, 1000, null, null);

    }
}
